#include <stdio.h>

int main(){
    int a = 9;
    int b = 10;

    // 不使用临时变量完成两个整数变量的替换
    a = a + b;
    b = a - b;
    a = a - b;

    printf("a=%d, b=%d\r\n", a, b);

    printf("===========\r\n");

    a = a ^ b;
    b = a ^ b;
    a = a ^ b;

    printf("a=%d, b=%d", a, b);
    return 0;
    
}